let mysqlConfig = {},
  puppeteerConfig = {};
let playLine = [
  { name: "爱豆", url: "https://jx.aidouer.net/?url=", mobile: 1, type: 0 },
  {
    name: "IK9",
    url: "https://yparse.ik9.cc/index.php?url=",
    mobile: 0,
    type: 1,
  },
];
let a = [
  {
    name: "云析",
    url: "https://jx.yparse.com/index.php?url=",
    mobile: 0,
    type: 0,
  }, //无限debugger 加密
  { name: "冰豆", url: "https://api.qianqi.net/vip/?url=", mobile: 0, type: 0 }, //可查看源码
  { name: "M3U8", url: "https://jx.m3u8.tv/jiexi/?url=", mobile: 0, type: 0 },
  {
    name: "PM",
    url: "https://www.playm3u8.cn/jiexi.php?url=",
    mobile: 0,
    type: 0,
  },
  { name: "七哥", url: "https://jx.mmkv.cn/tv.php?url=", mobile: 0, type: 0 }, //加密 debugger
  { name: "思古3", url: "https://jsap.attakids.com/?url=", mobile: 1, type: 0 },
  { name: "虾米", url: "https://jx.xmflv.com/?url=", mobile: 0, type: 0 },
  { name: "BL", url: "https://vip.bljiex.com/?v=", mobile: 0, type: 0 }, //debugger加密
  { name: "纯净1", url: "https://im1907.top/?jx=", mobile: 1 },
  { name: "B站1", url: "https://jx.jsonplayer.com/player/?url=", mobile: 1 },
  { name: "YT", url: "https://jx.yangtu.top/?url=", mobile: 0 },
  { name: "BL", url: "https://vip.bljiex.com/?v=", mobile: 0 },
  { name: "冰豆", url: "https://bd.jx.cn/?url=", mobile: 0 },
  { name: "CK", url: "https://www.ckplayer.vip/jiexi/?url=", mobile: 0 },
  { name: "弹幕", url: "https://dmjx.m3u8.tv/?url=", mobile: 0 },
  { name: "IK9", url: "https://yparse.ik9.cc/index.php?url=", mobile: 0 },
  { name: "JY", url: "https://jx.playerjy.com/?url=", mobile: 0 },
  { name: "解析la", url: "https://api.jiexi.la/?url=", mobile: 0 },
  { name: "M3U8", url: "https://jx.m3u8.tv/jiexi/?url=", mobile: 0 },
  { name: "PM", url: "https://www.playm3u8.cn/jiexi.php?url=", mobile: 0 },
  { name: "盘古", url: "https://www.pangujiexi.cc/jiexi.php?url=", mobile: 0 },
  { name: "盘古2", url: "https://www.pangujiexi.com/jiexi/?url=", mobile: 0 },
  { name: "剖云", url: "https://www.pouyun.com/?url=", mobile: 0 },
  { name: "七哥", url: "https://jx.nnxv.cn/tv.php?url=", mobile: 0 },
  { name: "神哥", url: "https://json.ovvo.pro/jx.php?url=", mobile: 0 },
  { name: "听乐", url: "https://jx.dj6u.com/?url=", mobile: 1 },
  { name: "维多", url: "https://jx.ivito.cn/?url=", mobile: 0 },
  { name: "虾米", url: "https://jx.xmflv.com/?url=", mobile: 0 },
  { name: "虾米2", url: "https://jx.xmflv.cc/?url=", mobile: 0 },
  { name: "夜幕", url: "https://www.yemu.xyz/?url=", mobile: 0 },
  { name: "云析", url: "https://jx.yparse.com/index.php?url=", mobile: 0 },
  { name: "17云", url: "https://www.1717yun.com/jx/ty.php?url=", mobile: 0 },
  { name: "180", url: "https://jx.000180.top/jx/?url=", mobile: 0 },
  {
    name: "2ys",
    url: "https://gj.fenxiangb.com/player/analysis.php?v=",
    mobile: 0,
  },
  { name: "8090", url: "https://www.8090g.cn/?url=", mobile: 0 },
];
if (process.env.NODE_ENV === "dev") {
  mysqlConfig = {
    host: "212.129.152.225",
    user: "root",
    password: "wang540407",
    database: "my_tv",
    port: 3306,
    connectionLimit: 10,
  };
  puppeteerConfig = {
    headless: false,
    devtools:false,
    args:[]
  };
} else {
  mysqlConfig = {
    connectionLimit: 10,
    host: "212.129.152.225",
    user: "root",
    password: "wang540407",
    database: "my_tv",
    port: 3306,
  };
  puppeteerConfig = {
    headless: true,
    devtools:false,
    args: ["--no-sandbox", "--disable-setuid-sandbox"],
  };
}
module.exports = {
  mysqlConfig,
  puppeteerConfig,
  playLine,
};
